#!/bin/bash

FILE=/tmp/mailtmp.html
echo "$3" >$FILE
dos2unix -k $FILE
/bin/mail -s "$2" $1 < $FILE


#echo "$3" | mail -s "$2" "$1"

#export.UTF-8
#to=$1
#subject=$2
#body=$3
#user='zabbixadmin@minthgroup.com'
#smtp_server='smtp.minthgroup.com'
#/usr/lib/sendmail -f $user -t "$to" -s $smtp_server -u "$subject" -o message-content-type=html -o message-charset=utf8 -m "$body" >> /var/log/sendmail.log